import request from '@/utils/request'

// 查询数据分页
export function getMallMaterialGroupPage(query) {
  return request({
    url: '/mallMaterialGroup/getPage',
    method: 'get',
    params: query
  })
}
// 查询数据列表
export function getFileInfo(query) {
  return request({
    url: '/fileInfo/getList',
    method: 'get',
    params: query
  })
}
// 查询数据列表
export function getFileInfoPage(query) {
  return request({
    url: '/fileInfo/getPage',
    method: 'get',
    params: query
  })
}
// 查询数据列表
export function getMallMaterialGroupList(query) {
  return request({
    url: '/mallMaterialGroup/getList',
    method: 'get',
    params: query
  })
}

// 通过主键查询数据详细
export function getMallMaterialGroupById(query) {
  return request({
    url: '/mallMaterialGroup/getById',
    method: 'get',
    params: query
  })
}

// 新增或修改数据信息
export function addOrUpdateMallMaterialGroup(data) {
  return request({
    url: '/mallMaterialGroup/saveOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除数据记录
export function delMallMaterialGroup(ids) {
  return request({
    url: '/mallMaterialGroup/deleteByIds/'+ids,
    method: 'delete',
  })
}
// 删除数据记录
export function delFileInfo(ids) {
  return request({
    url: '/fileInfo/deleteByIds/'+ids,
    method: 'delete',
  })
}

// 导出数据数据
export function exportMallMaterialGroup(query) {
  return request({
    url: '/mallMaterialGroup/export',
    method: 'get',
    params: query
  })
}
